package com.example.rabbitmq.consumer;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.function.Consumer;

/**
 * <p>
 * description
 * </p>
 *
 * @author luanmingbin@byteplan.com
 *        @since 2024/8/30 15:02
 */
@Configuration
public class MsgConsumer2 {
    @Bean
    public Consumer<String> consumer1() {
        System.out.println("consumer1");
        return System.out::println;
    }

    @Bean
    public Consumer<String> consumer2() {
        System.out.println("consumer2");
        return System.out::println;
    }

}
